import java.util.ArrayList;
import java.util.Arrays;
import java.util.Timer;
import java.util.TimerTask;


public class ttime {
	static ArrayList<Integer> li=new ArrayList<Integer>();
	static ArrayList<Integer> li2=new ArrayList<Integer>();
	public static void main(String[] args) throws InterruptedException {
		String ss="12+13+13*15";
		String[]s1=ss.split("\\d+");
		System.out.println(s1.length);
		System.out.println(Arrays.toString(s1));
		Timer timer =new Timer();
		li.add(1);
		li2.add(2);
		task ta=new task();
		System.out.println(li.size());
		timer.schedule(ta, 1000);
		Thread.sleep(2000);
		System.out.println(li.size());
		
		System.out.println("2"+li2.size());
		newThread nt=new newThread();
		nt.start();
		System.out.println("2"+li2.size());
		
	}
}
class task extends TimerTask{	
	public void run() {
		ttime.li=new ArrayList<Integer>();
	}
}
class newThread extends Thread{
	public void run() {
		while(true){
		  ttime.li2=new ArrayList<Integer>();
		  try {
			Thread.sleep(12*3600*1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		}  
	}
}